/*
 * @Date: 2022-01-28 08:27:42
 * @LastEditTime: 2022-01-29 07:36:58
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.userToken, // 用户token
  userInfo: state => state.user.userInfo, // 用户信息
  name: state => state.user.userInfo.username, // 用户信息的用户名
  userId: state => state.user.userInfo.userId, // 用户信息的userId
  avatar: state => state.user.userInfo.staffPhoto, // 用户头像
  companyId: state => state.user.userInfo.companyId, // 公司id =》查找公司信息用
  staffPhoto: state => state.user.userInfo.staffPhoto,
  routes: state => state.permission.routes // 动态路由和静态路由的组合体
}
export default getters
